#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <MySQLDBHelper.h>
#include <QDebug>
#include "AddInfo.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    void initTableWidget();
    void setSignals();
    ~MainWindow();

public slots:
	void reload();
    void addData();
    void editData(int,int);
    void deleteData();
    void receiveMsg(int);

private:
    Ui::MainWindow *ui;
    AddInfo *create;
    const int COL_NUM = 6;
};

#endif // MAINWINDOW_H
